libphonenumber\PhoneNumberUtil D

Total Complexity 453
Dependencies 19
Dependents 2
Total lines 3,556
Lines of code 1,616
Logical lines of code 946
Comment lines 1,292
Methods 97
Properties 21

Methods 97

Method Rating Maintainability Complexity Lines of code
parseHelper()
C
32 25 114
isNumberMatch()
C
36 27 81
formatNumberForMobileDialing()
B
42 22 46
formatInOriginalFormat()
B
38 17 72
maybeStripNationalPrefixAndCarrierCode()
B
43 17 49
formatOutOfCountryKeepingAlphaChars()
B
39 15 68
getNumberTypeHelper()
A
45 15 45
testNumberLength()
A
44 14 45
maybeExtractCountryCode()
A
41 13 59
getExampleNumberForType()
A
48 12 34
formatOutOfCountryCallingNumber()
A
43 9 52
formatNsnUsingPattern()
A
48 9 34
getLengthOfGeographicalAreaCode()
S
55 7 20
formatByPattern()
S
48 6 35
format()
S
52 6 26
buildNationalNumberForParsing()
S
52 6 25
getExampleNumberForNonGeoEntity()
S
53 6 23
getLengthOfNationalDestinationCode()
S
53 6 21
getInvalidExampleNumber()
S
54 6 21
getRegionCodeForNumberFromRegionList()
S
54 6 20
chooseFormattingPatternForNumber()
S
56 6 19
normalizeDigits()
S
57 6 17
extractCountryCode()
S
58 6 14
setItalianLeadingZerosForPhoneNumber()
S
60 6 13
maybeAppendFormattedExtension()
S
61 6 11
extractPossibleNumber()
S
56 5 17
truncateTooLongNumber()
S
57 5 17
init()
S
57 5 16
getInstance()
S
59 5 15
maybeStripExtension()
S
58 5 14
getNddPrefixForRegion()
S
60 5 14
getSupportedTypesForMetadata()
S
61 5 12
isNumberGeographical()
S
62 5 11
maybeStripInternationalPrefixAndNormalize()
S
56 4 17
parsePrefixAsIdd()
S
58 4 16
checkRegionForParsing()
S
64 5 9
extractPhoneContext()
S
59 4 14
normalizeHelper()
S
59 4 13
copyCoreFieldsOnly()
S
60 4 13
isPossibleNumber()
S
60 4 13
prefixNumberWithCountryCallingCode()
S
61 4 13
isValidNumberForRegion()
S
61 4 12
isPhoneContextValid()
S
62 4 11
createExtnPattern()
S
48 2 38
__construct()
S
49 2 32
formatNsn()
S
63 4 10
rawInputContainsNationalPrefix()
S
61 3 13
getNumberType()
S
62 3 12
isViablePhoneNumber()
S
62 3 11
getRegionCodeForNumber()
S
62 3 11
formatNationalNumberWithCarrierCode()
S
55 2 22
isNumberMatchingDesc()
S
66 3 8
formatNationalNumberWithPreferredCarrierCode()
S
67 3 8
getNationalSignificantNumber()
S
65 3 9
descHasData()
S
73 3 5
hasFormattingPatternForNumber()
S
62 2 11
descHasPossibleNumberData()
S
74 2 4
getCountryCodeForRegion()
S
71 2 6
isValidNumber()
S
68 2 7
getRegionCodeForCountryCode()
S
74 2 4
getMetadataForRegion()
S
71 2 6
getNumberDescByType()
S
58 1 15
canBeInternationallyDialled()
S
66 2 8
getSupportedTypesForNonGeoEntity()
S
69 2 7
getSupportedTypesForRegion()
S
69 2 7
parse()
S
68 2 7
getCountryCodeForValidRegion()
S
68 2 7
getMetadataForNonGeographicalRegion()
S
71 2 6
isNationalNumberSuffixOfTheOther()
S
70 2 6
isPossibleNumberForType()
S
72 2 5
formattingRuleHasFirstGroupOnly()
S
67 2 8
isAlphaNumber()
S
67 2 7
isMobileNumberPortableRegion()
S
69 2 7
getMetadataForRegionOrCallingCode()
S
75 2 4
normalize()
S
68 2 7
parseAndKeepRawInput()
S
68 2 7
isPossibleNumberForTypeWithReason()
S
63 2 10
isValidRegionCode()
S
77 2 3
initExtnPatterns()
S
76 1 4
initRFC3966Patterns()
S
65 1 8
extnDigits()
S
78 1 3
getExampleNumber()
S
79 1 3
isPossibleNumberWithReason()
S
79 1 3
initValidPhoneNumberPatterns()
S
68 1 6
hasValidCountryCallingCode()
S
79 1 3
initExtnPattern()
S
79 1 3
isNANPACountry()
S
79 1 3
resetInstance()
S
80 1 3
normalizeDiallableCharsOnly()
S
78 1 3
convertAlphaCharactersInNumber()
S
78 1 3
getRegionCodesForCountryCode()
S
75 1 4
getCountryMobileToken()
S
79 1 3
getValidPhoneNumberPattern()
S
81 1 3
getSupportedGlobalNetworkCallingCodes()
S
82 1 3
normalizeDigitsOnly()
S
79 1 3
getSupportedCallingCodes()
S
80 1 3
getSupportedRegions()
S
82 1 3